package com.nowoe.server.controller;

import com.nowoe.server.constant.Http;
import com.nowoe.server.http.Request;
import com.nowoe.server.http.Response;
import com.nowoe.server.servlet.HttpServlet;
import com.nowoe.server.util.HttpProtocolUtil;

/**
 * @author 倚栏听风 2024/1/5 16:04
 */
public class MyController extends HttpServlet {
    @Override
    public void doGet(Request request, Response response) throws Exception {
        String content = "<h1>GET Request<h1>";
        response.outSuccess(content);
    }

    @Override
    public void doPost(Request request, Response response) throws Exception {
        String content = "<h1>POST Request<h1>";
        response.outSuccess(content);
    }
}
